'use strict';
import React, {Component, PropTypes} from 'react';
import './style.less';

export default class ItemMask extends Component {
    constructor( props ) {
        super( props );
    }
    render(){
        let {type,width,itemSpace} = this.props;
        let style = {width:width};
        if(type == 'right') style.right = 0;
        if(type == 'left') style.left = 0;
        return (
            <i
                className={type + "_mask mask"}
                style={style} />
        )
    }
}